<?php

	$this->Html->script(array('jquery.maskedinput-1.2.2.min','maskinput','flexigrid.pack'), false);
	$this->Html->css('flexigrid', null, array('inline' => false));

	$convenio_id = $this->request->data['ConvenioEmail']['convenio_id'];
	
	echo "<fieldset><legend>Incluir Telefone: $nome_convenio</legend>";
	
	echo $this->Form->create('ConvenioEmail');
	echo $this->Form->input('id');
	echo $this->Form->input('convenio_id',array('type' => 'hidden'));
	echo $this->Form->input('setor',array('type'=>'text','class' => 'tamanho50', 'label'=> __('Setor'),'maxlength'=>100));	
	echo $this->Form->input('email',array('type'=>'text','class' => 'tamanho50', 'label'=> __('E-mail'),'maxlength'=>100));	 
	echo $this->Form->input('contato',array('type'=>'text','class' => 'tamanho50', 'label'=> __('Contato'),'maxlength'=>100)); 
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/convenios/alterar/$convenio_id'"));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';